/*
 * @Description: 
 * @version: 
 * @Author: wyx
 * @Date: 2020-09-27 20:18:34
 * @LastEditDate: Do not exit
 */
import request from '@/utils/request'



/**
 * 删除函数
 * @param {type} id
 */
export function deleteMember(id){
    return request({url:"/member-service/member/"+id,method:"delete"});
}

/**
 *查询所有
 * @param {*}keyword
 */
export function getMemberAll(){
    return request({url:"/member-service/member/alllist",method:"get"});
}

/**
 * 根据昵称查询会员
 * @param {type} 
 */
export function getMemberByNick(nickname){
    return request({url:"/member-service/member/list/nickname/"+nickname,method:"get"});
}

/**
 *查询所有
 * @param {*}keyword
 */
export function getMemberPage(keyword){
    return request({url:"/member-service/member/page",method:"post",data:keyword});
}